Release 10.1A: OpenEdge Development:
.NET Open Clients
Remote 4GL methods
ProxyGen maps each Progress 4GL non-persistent procedure, internal procedure, and user-defined function exposed on the AppServer to a remote 4GL method. These methods are part of an AppObject, SubAppObject, or ProcObject. ProxyGen generates method names using automatic conversion and conventions. For more information on proxy generation, see OpenEdge Development: Open Client Introduction and Programming .
A sample non-persistent procedure follows:
ProxyGen generates the following .NET proxy method:
Passing parameters
ProxyGen maps 4GL data types to equivalent data types in .NET for 4GL
INPUT,OUTPUT, andINPUT-OUTPUTparameters. For details, see Chapter 4, " Passing Parameters."Handling return values
When using ProxyGen, you optionally can specify whether the 4GL
RETURN-VALUEshould be added to the proxy method, for each non-persistent procedure and internal procedure. (User-defined functions always return a value.) If you specify this, the method returnsstring; otherwise, the method returnsvoid. If specified for the non-persistent procedure above, ProxyGen generates the following .NET proxy method:
Also, if you did not specify that the 4GL
RETURN-VALUEshould be returned, the client can access the current value of the 4GLRETURN-VALUEfunction by calling the_GetProcReturnStringcommon method on the Open Client object. See the "Common methods" section for additional information.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |